package cn.meibang.meibanguserskillstype.provider.dao;

import cn.meibang.meibanguserskillstype.provider.base.BaseMeibangUserSkillsTypeMapper;
import cn.meibang.meibanguserskillstype.provider.request.ListMeibangUserSkillsTypeRequest;
import cn.meibang.meibanguserskillstype.provider.request.MeibangUserSkillsTypeRequest;
import cn.meibang.meibanguserskillstype.provider.response.MeibangUserSkillsTypeResponse;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 技师技能细类型 Dao 层
 *
 * @author yudw
 * @version 1.0
 */
public interface MeibangUserSkillsTypeMapper extends BaseMeibangUserSkillsTypeMapper {

    @SelectProvider(type = MeibangUserSkillsTypeSqlProvider.class, method = "lisForPage")
    @ResultType(value = MeibangUserSkillsTypeResponse.class)
    List<MeibangUserSkillsTypeResponse> lisForPage(ListMeibangUserSkillsTypeRequest request);

    @SelectProvider(type = MeibangUserSkillsTypeSqlProvider.class, method = "list")
    @ResultType(value = MeibangUserSkillsTypeResponse.class)
    List<MeibangUserSkillsTypeResponse> list(MeibangUserSkillsTypeRequest request);

    @InsertProvider(type = MeibangUserSkillsTypeSqlProvider.class, method = "inserAll")
    int insertList(List<MeibangUserSkillsTypeRequest> list);
}